package org.gr.ias.common.entity;

import java.io.Serializable;
import java.util.Date;

public class ManagementNetwork implements Serializable {
    /** id*/
    private String id;

    /** 发送者*/
    private String sendId;

    /** 接收者*/
    private String receiveId;

    /** 是否回执*/
    private String isReceipt;

    /** 发送时间*/
    private Date sendTime;

    /** 回执时间*/
    private Date receiptTime;

    /** 资料状态(1:正常,2:禁用,3.逻辑删除)*/
    private Integer flag;

    /** */
    private String isSendView;

    /** */
    private String isReceiptView;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getSendId() {
        return sendId;
    }

    public void setSendId(String sendId) {
        this.sendId = sendId == null ? null : sendId.trim();
    }

    public String getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(String receiveId) {
        this.receiveId = receiveId == null ? null : receiveId.trim();
    }

    public String getIsReceipt() {
        return isReceipt;
    }

    public void setIsReceipt(String isReceipt) {
        this.isReceipt = isReceipt == null ? null : isReceipt.trim();
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getReceiptTime() {
        return receiptTime;
    }

    public void setReceiptTime(Date receiptTime) {
        this.receiptTime = receiptTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getIsSendView() {
        return isSendView;
    }

    public void setIsSendView(String isSendView) {
        this.isSendView = isSendView == null ? null : isSendView.trim();
    }

    public String getIsReceiptView() {
        return isReceiptView;
    }

    public void setIsReceiptView(String isReceiptView) {
        this.isReceiptView = isReceiptView == null ? null : isReceiptView.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ManagementNetwork other = (ManagementNetwork) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSendId() == null ? other.getSendId() == null : this.getSendId().equals(other.getSendId()))
            && (this.getReceiveId() == null ? other.getReceiveId() == null : this.getReceiveId().equals(other.getReceiveId()))
            && (this.getIsReceipt() == null ? other.getIsReceipt() == null : this.getIsReceipt().equals(other.getIsReceipt()))
            && (this.getSendTime() == null ? other.getSendTime() == null : this.getSendTime().equals(other.getSendTime()))
            && (this.getReceiptTime() == null ? other.getReceiptTime() == null : this.getReceiptTime().equals(other.getReceiptTime()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getIsSendView() == null ? other.getIsSendView() == null : this.getIsSendView().equals(other.getIsSendView()))
            && (this.getIsReceiptView() == null ? other.getIsReceiptView() == null : this.getIsReceiptView().equals(other.getIsReceiptView()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSendId() == null) ? 0 : getSendId().hashCode());
        result = prime * result + ((getReceiveId() == null) ? 0 : getReceiveId().hashCode());
        result = prime * result + ((getIsReceipt() == null) ? 0 : getIsReceipt().hashCode());
        result = prime * result + ((getSendTime() == null) ? 0 : getSendTime().hashCode());
        result = prime * result + ((getReceiptTime() == null) ? 0 : getReceiptTime().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getIsSendView() == null) ? 0 : getIsSendView().hashCode());
        result = prime * result + ((getIsReceiptView() == null) ? 0 : getIsReceiptView().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sendId=").append(sendId);
        sb.append(", receiveId=").append(receiveId);
        sb.append(", isReceipt=").append(isReceipt);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", receiptTime=").append(receiptTime);
        sb.append(", flag=").append(flag);
        sb.append(", isSendView=").append(isSendView);
        sb.append(", isReceiptView=").append(isReceiptView);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}